<?php
##登陆后页面
require_once 'function/global.php';
if (!is_logged()) {
    show_error_page();
    die();
}
$username = get_logged_username();
$conn = db_connect();
$sql = "select * from user where username= '$username'";
$result = mysqli_query($conn, $sql) or die_db_error($conn);
$row = mysqli_fetch_array($result);
$headimg=$row['headimg'];
$signature = $row['signature'];
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>登陆后</title>
        <link rel="stylesheet" href="js/jquery/jquery.mobile-1.4.5.min.css"/>

        <link href="css/next.css" rel="stylesheet">
    </head>
    <body>
        <div data-role="page" id="next">
            <div class="next_header">
                <div>
                    <div data-role="none" class="next_head1"></div>
                    <a href="member.html"><img class="next_user" src="<?php echo $headimg;?>" width="105" /></a>
                </div>
                <div>
                    <div data-role="none" class="next_head2"></div>
                    <h5 class="next_font"><?php echo $username; ?></h5>
                    <h6 style="color:grey;" class="next_font1"><?php echo $signature; ?></h6>
                </div>
            </div>

            <div role="main">
                <div>
                    <div>
                        <img class="next_line_img" src="img/rode.png">
                        <div class="next_chakanluxian">
                            <a style="color:grey;text-decoration:none;" href="map.html">查看路线</a><br />
                            <small class="next_link-color">where you go?</small>
                        </div>
                    </div>
                </div>

                <div>
                    <img class="next_discount_img" src="img/euro.png" >
                    <div class="next_discount">
                        <a style="color:grey;text-decoration:none;"  href="discounts.php">优惠信息</a><br />
                        <small class="next_link-color">The discounts</small>
                    </div>
                </div>

                <div>
                    <img class="next_discount_img" src="img/news.png" >
                    <div class="next_news">
                        <a style="color:grey;text-decoration:none;"  href="message.php">动态消息</a><br />
                        <small class="next_link-color">Instant news</small>
                    </div>
                </div>
                <div data-role="footer" data-position="fixed" style="background:white;">
                    <a data-role="none" class="next_button" href="next.php"><img src="img/house14.png"></a>
                    <a data-role="none" class="next_button" href="buy%20ticket.html"><img src="img/tickets1.png"></a>
                    <a data-role="none" class="next_button" href="mine.php"><img src="img/users.png"></a>
                </div>
            </div>
        </div>

        <script src="js/jquery/jquery-1.12.0.min.js"></script>
        <script src="js/jquery/jquery.mobile-1.4.5.min.js"></script>
    </body>
</html>